const express = require('express');
const router = express.Router();
const userController = require('../controllers/userController');

// 获取所有用户
router.get('/users', userController.getUsers);

//登录
router.post('/users/login', userController.getUsersByNameEmail);

// 创建用户
router.post('/users', userController.createUser);
//删除用户
router.post('/users/delete', userController.deleteUsers);


module.exports = router;
